<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>积分规则 </title>
        <link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="../Public/script/jquery.js"></script>
        <script type="text/javascript" src="../Public/script/ts_common.js"></script>
        <script>
            //delAll
            function delAll() {
                var ids = getSelectValues();
                location.href = "__URL__/delAd/id/"+id;
            }
        </script>
    </head>
    <body>
        <div id="container">
            <table class="tableborder" width="100%">
                <tr>
                    <td class="header" colspan="4">浏览全部广告</td>
                </tr>

                <tr class="cell altbg2">
                    <th width="20%" align="left">标题</th>
                    <th width="30%" align="left">页面位置</th>
                    <th width="20%" align="left">有效</th>
                    <th width="30%" align="left">编辑</th>
                </tr>

                <volist name="ads" id="vo">
                    <tr class="cell altbg1">
                        <td>
                            <input name="checkbox" type="checkbox" class="checkbox" id="checkbox" value="{$vo.id}"/>
                            {$vo.title}
                        </td>
                        <td>{$vo.place}</td>
                        <td><php>if($vo["use"] == 0){</php>无效<php>}else{</php>有效<php>}</php></td>
                        <td><a href="__URL__/ad_add/id/{$vo.id}">编辑</a></td>
                    </tr>

                </volist>



                <tr class="cell altbg2">
                    <td colspan="4"><input name="checkbox5" type="checkbox" class="checkbox" id="checkAll" />
                        全选
                        <input name="button" type="button" class="button" id="button" value="批量删除" onclick="delAll()" />
                        <input name="button" type="button" class="button" id="button" value="添加广告" onclick="location.href='__URL__/ad_add'" />
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>
